.profile-container {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    min-height: 600px;
}

.profile-sidebar {
    width: 250px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-right: 20px;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0e6fa;
    margin-bottom: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0e6fa;
}

#changeAvatarBtn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(156, 106, 222, 0.8);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    width: 80px;
    transition: all 0.3s;
}

#changeAvatarBtn:hover {
    background-color: #8a5acd;
}

.username {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.user-email {
    font-size: 14px;
    color: #666;
}

.profile-nav {
    display: flex;
    flex-direction: column;
}

.profile-nav a {
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    margin-bottom: 5px;
    transition: all 0.3s;
    font-size: 14px;
}

.profile-nav a:hover {
    background-color: #f9f5ff;
    color: #9c6ade;
}

.profile-nav a.active {
    background-color: #9c6ade;
    color: white;
}

.profile-content {
    flex: 1;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 30px;
}

.profile-content h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 1px solid #f0e6fa;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
    max-width: 500px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0d0f0;
    border-radius: 3px;
    font-size: 14px;
    background-color: #f9f5ff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #9c6ade;
    outline: none;
    background-color: white;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

button[type="submit"] {
    padding: 12px 30px;
    background-color: #9c6ade;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}

button[type="submit"]:hover {
    background-color: #8a5acd;
}

/* 新增部分：响应式设计 */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* 新增部分：卡片样式 */
.info-card {
    background-color: #f9f5ff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 3px solid #9c6ade;
}

.info-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.info-card p {
    color: #666;
    margin-bottom: 0;
}

/* 新增部分：订单列表样式 */
.order-list {
    border: 1px solid #f0e6fa;
    border-radius: 5px;
    overflow: hidden;
}

.order-item {
    padding: 15px;
    border-bottom: 1px solid #f0e6fa;
    transition: all 0.3s;
}

.order-item:hover {
    background-color: #f9f5ff;
}

.order-item:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-id {
    color: #9c6ade;
    font-weight: bold;
}

.order-date {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    background-color: #f0e6fa;
    color: #9c6ade;
}